﻿using System;
using StudentWeb.Common;

namespace StudentWeb.Model
{
	/// <summary>
	/// Reviews
	/// </summary>
    [Serializable]
	public class ReviewsData
	{
		/// <summary>
		/// ReviewID
        /// </summary>
        [FieldName("ReviewID")]		
		public int ReviewID
		{
			get;
			set;
		}
        
		/// <summary>
		/// TouristID
        /// </summary>
        [FieldName("TouristID")]		
		public int TouristID
		{
			get;
			set;
		}
        
		/// <summary>
		/// ReviewContent
        /// </summary>
        [FieldName("ReviewContent")]		
		public string ReviewContent
		{
			get;
			set;
		}
        
		/// <summary>
		/// ReviewDate
        /// </summary>
        [FieldName("ReviewDate")]		
		public DateTime ReviewDate
		{
			get;
			set;
		}
        
		/// <summary>
		/// Rating
        /// </summary>
        [FieldName("Rating")]		
		public int? Rating
		{
			get;
			set;
		}
        
        public ReviewsData Clone()
        {
            return (ReviewsData)this.MemberwiseClone();
        }
        
        public ReviewsData()
        {
            ReviewContent = string.Empty;
            ReviewDate = ConvertHelper.DefaultDate;
        }
	}
}
